/**
 * 
 */
package org.cuatrovientos.erp.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author pablo_guerrero
 *
 */
public class Role {
	@Min(value=1,message="{role.id.error}")
	private int id;
	
	@NotNull(message="{role.name.error}")
	private String name;
	
	@NotNull(message="{role.description.error}")
	private String description;
	
	/**
	 * Default constructor
	 */
	public Role(){
		
	}
	
	/**
	 * Constructor
	 * @param id
	 * @param name
	 * @param description
	 */
	public Role(int id, String name, String description){
		this.id = id;
		this.name = name;
		this.description = description;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}
